package com.game.service.socket;

import java.util.Timer;
import java.util.TimerTask;
 
public class CountdownTimer {
    private Timer timer;
    public CountdownTimer() {
        this.timer = new Timer();
    }
 
    public void startTimer(TimerTask task) {
        timer.scheduleAtFixedRate(task, 0, 1000);
    }
 

}